package com.gin.kotlin.gf2gamecommunity.base.composable

import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.size
import androidx.compose.material3.CircularProgressIndicator
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.unit.dp

@Composable
fun Loading(
    modifier: Modifier = Modifier
        .fillMaxWidth()
        .height(80.dp)
) = Box(modifier = modifier, contentAlignment = Alignment.Center) {
    CircularProgressIndicator(modifier = Modifier.size(64.dp))
}